Xcode 5 Start to Finish: iOS and OS X Development (Developer's Library) by Fritz Anderson

Xcode 5 Start to Finish: iOS and OS X Development (Developer's Library) by Fritz Anderson

Author:Fritz Anderson [Anderson, Fritz]
Language: eng
Format: epub
Publisher: Pearson Education
Published: 2014-05-03T00:00:00+00:00


Pick your method and go one level down from the scroll view to select the table.

The Attributes inspector gives you three levels of settings, for each level in NSTableView’s place in the class hierarchy: first as a table view, then as a control view, and finally just as a view. Make these changes to the “Table View” section.

This table will use cells to draw its contents, not views. Select Cell Based from the Content Mode popup.

For Columns, set 3.

You want columns to have Headers, Resizing (you can adjust the width by dragging the edge of a header), and Reordering (moving columns left and right through the display). Check them all.

For Column Sizing, set Sequential. That way, when resizing the table makes it wider, the first column will grow wider until it reaches a maximum width you set, and then the second up to its maximum, and then the third.

Everything else can remain as it is.

So you’ve set three columns—where’s the third? When you resized the table to fill the window, the second (and then-last) column resized to fill the available space. The third column was added to the right, out of sight. Click at the second column—below the header—until it highlights, grab the graphical handle that appears on its right edge, and set it to the size you’ll want (remember it only has to accommodate a four- or five-digit total score). That should bring the third column into sight, which you can resize the same way. You should also adjust the first column so it can accommodate team names.

While you’re selecting columns, you’ll see that the Attributes inspector offers a Title field. Name the columns Team Name, Own, and Opp, respectively. The Size inspector (tab 5) is also of interest: You can set the starting, minimum, and maximum widths there.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.